﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>班级信息-教学辅助系统</title>
	<!-- Bootstrap Styles-->
    <link th:href="@{/assets/css/bootstrap.css}" rel="stylesheet" />
     <!-- FontAwesome Styles-->
    <link th:href="@{/assets/css/font-awesome.css}" rel="stylesheet" />
     <!-- Morris Chart Styles-->
   
        <!-- Custom Styles-->
    <link th:href="@{/assets/css/custom-styles.css}" rel="stylesheet" />
     <!-- Google Fonts-->
   <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
     <!-- TABLE STYLES-->
    <link th:href="@{/assets/js/dataTables/dataTables.bootstrap.css}" rel="stylesheet" />
    <script type="text/javascript">
        function autoSubmit(){
            document.getElementById("myForm").submit();
        }
    </script>
</head>

<body onload="autoSubmit();">
<div id="wrapper">
    <nav class="navbar navbar-default top-navbar" role="navigation">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="index.html" >管理员系统</a>
        </div>

        <ul class="nav navbar-top-links navbar-right">
            <li style="margin: 20px 30px 0px 0px">
                <span style="color: #FFFFFF" th:text="${session.admin.opName}"></span>
            </li>

            <!-- /.dropdown -->
        </ul>
    </nav>
    <!--/. NAV TOP  -->
    <nav class="navbar-default navbar-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav" id="main-menu">

                <li>
                    <a th:href="@{/adminInOp/toindex}"><span class="fa fa-dashboard"></span> 首页</a>
                </li>

                <li>
                    <a th:href="@{/adminInOp/selectStudent}"><span class="fa fa-table"></span> 学生信息</a>
                </li>
                <li>
                    <a th:href="@{/adminInOp/selectTeacher}"><span class="fa fa-table"></span> 老师信息</a>
                </li>
                <li>
                    <a th:href="@{/adminInOp/selectAllWork}"><span class="fa fa-table"></span> 作业信息</a>
                </li>
                <li>
                    <a  class="active-menu"  th:href="@{/adminInOp/toattendance}"><span class="fa fa-table"></span> 查看班级</a>
                </li>
                <li>
                    <a href="student.html"><span class="fa fa-edit"></span> 添加/管理<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">
                        <li>
                            <a th:href="@{/adminInOp/AddStudentNameClass}">添加学生</a>
                        </li>
                        <li>
                            <a th:href="@{/adminInOp/AddTeacherBooksubject}">添加老师</a>
                        </li>
                        <li>
                            <a th:href="@{/adminInOp/AddClass}">添加班级</a>
                        </li>
                        <li>
                            <a th:href="@{/adminInOp/seleTeacherClass}">添加老师管理的班级</a>
                        </li>
                        <li>
                            <a th:href="@{/adminInOp/selectBooksubject}">添加科目</a>
                        </li>
                    </ul>
                </li>


                <!--<li>
                    <a href="empty.html"><i class="fa fa-fw fa-file"></i> Empty Page</a>
                </li>-->
            </ul>

        </div>

    </nav>
    <!-- /. NAV SIDE  -->
    <div id="page-wrapper" >
        <div id="page-inner">
            <div class="row">
                <div class="col-md-12">
                    <h1 class="page-header">
                        班级 <small>信息</small>
                    </h1>
                </div>
            </div>
            <!-- /. ROW  -->

            <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                           考勤信息表
                            <div>
                                <!--下拉框-->
                                <form th:action="@{/adminInOp/selectClassSection(cid=${cid},tid=${tid})}"  method="post" style="display: inline-block">
                                    请选择课节：
                                    <select name="classsection">
                                        <option value=0>未选择</option>
                                        <option value=1>早读</option>
                                        <option value=2>第一节课</option>
                                        <option value=3>第二节课</option>
                                        <option value=4>第三节课</option>
                                        <option value=5>第四节课</option>
                                        <option value=6>晚自习</option>


                                    </select>
                                    <input type="date" placeholder="通过日期搜索" name="atDate">
                                    <input type="submit" value="提交">



                                <!--搜索-->


                                </form>
                                <span th:text="${no}"></span>
                                <div style="clear: right"></div>

                                <div style="clear: right"></div>
                            </div>
                        </div>

                        <div >
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" >
                                    <thead>
                                    <tr>

                                        <th>班级名字</th>
                                        <th>学生名字</th>
                                        <th>状态</th>
                                        <th>课节</th>
                                        <th>时间</th>



                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class="gradeU" th:each="list:${list}">

                                        <td th:text="${list.className}"></td>
                                        <td th:text="${list.name}"></td>
                                        <div th:if="${list.atRate}==1">
                                            <td th:text="已到"></td>

                                        </div>
                                        <div th:if="${list.atRate}==2">
                                            <td th:text="未到"></td>

                                        </div>
                                        <div th:if="${list.atRate}==3">
                                            <td th:text="请假"></td>

                                        </div>
                                        <div th:if="${list.atRate}==4">
                                            <td th:text="迟到"></td>

                                        </div>
                                        <div th:if="${list.class_section}==1">
                                        <td>早读</td>
                                        </div>
                                        <div th:if="${list.class_section} lt 6 and ${list.class_section} gt 1 ">
                                            <td th:text="'第'+(${list.class_section}-1)+'节课'"></td>
                                        </div>
                                        <div th:if="${list.class_section}==6">
                                            <td>晚自习</td>
                                        </div>
                                        <td th:text="${list.atDate}"></td>

                                    </tr>
                                    </tbody>
                                </table>


                            </div>

                        </div>
                    </div>
                    <!--End Advanced Tables -->
                </div>
            </div>
        </div>
        <footer><p>Copyright &copy; 2023.Company name All rights reserved.More Templates <a href="http://www.jxgsxy.net/" target="_blank" title="江西工商">软件一班</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a></p></footer>
    </div>
    <!-- /. PAGE INNER  -->
</div>
<!-- /. PAGE WRAPPER  -->
<!-- /. WRAPPER  -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script th:src="@{/assets/js/jquery-1.10.2.js}"></script>
<!-- Bootstrap Js -->
<script th:src="@{/assets/js/bootstrap.min.js}"></script>
<!-- Metis Menu Js -->
<script th:src="@{/assets/js/jquery.metisMenu.js}"></script>
<!-- DATA TABLE SCRIPTS -->
<script th:src="@{/assets/js/dataTables/jquery.dataTables.js}"></script>
<script th:src="@{/assets/js/dataTables/dataTables.bootstrap.js}"></script>
<script>
    $(document).ready(function () {
        $('#dataTables-example').dataTable();
    });
</script>
<!-- Custom Js -->
<script th:src="@{/assets/js/custom-scripts.js}"></script>


</body>
</html>

